package com.eastmoney.emis.edda.infrastructure.constraint.repository;

import com.eastmoney.emis.utils.common.po.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.infrastructure.constraint.repository
 * @author: 汪程程
 * @date: 2022/10/15 1:05 PM
 * @version: 1.0
 */
@FeignClient(name = "EMIS-Basic-BusinessDay", url = "${edda.feign.business-day-service}")
public interface BusinessDayRepository {

    @GetMapping("/innerApi/hkBusinessDay/isBusinessDay/{day}")
    BaseResponse<Boolean> isHKBusinessDay(@PathVariable("day") String day);
}
